/**
 * Copyright (c) 快宝网络 kuaidihelp.com Co., Ltd. All Rights Reserved 禁止外泄以及用于其它的商业用途
 */

/**
 * 用户反馈-好印莱
 */
import React, { useState } from 'react';
import { PageContainer } from '@ant-design/pro-layout';
import { Tabs } from 'antd';
import HylTable from '@/components/_pages/handleFeedBack/hyl';

const FeedbackCourier: React.FC = () => {
  const [activeKey, setActiveKey] = useState<string>('reviewed');
  const tabList = [
    {
      tab: '待审核',
      key: 'reviewed',
    },
    {
      tab: '已处理',
      key: 'pass',
    },
    {
      tab: '已忽略',
      key: 'refuse',
    },
  ];

  return (
    <PageContainer>
      <Tabs onChange={setActiveKey}>
        {tabList.map((item) => (
          <Tabs.TabPane tab={item.tab} key={item.key}>
            <HylTable type={item.key} activeKey={activeKey} />
          </Tabs.TabPane>
        ))}
      </Tabs>
    </PageContainer>
  );
};

export default FeedbackCourier;
